package com.movitech.mobile.cz.base.supplier.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersInspectionAc;
import com.movitech.mobile.cz.base.supplier.mapper.SSuppliersInspectionAcMapper;
import com.movitech.mobile.cz.base.supplier.service.SSuppliersInspectionAcService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 供方考察报告-考察交流与结论 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-08-31
 */
@Service
public class SSuppliersInspectionAcServiceImpl extends ServiceImpl<SSuppliersInspectionAcMapper, SSuppliersInspectionAc> implements SSuppliersInspectionAcService {

    @Override
    public SSuppliersInspectionAc selectByInspectId(String inspectId) {
        SSuppliersInspectionAc where = new SSuppliersInspectionAc();
        where.setSuppliersInspectionId(inspectId);
        where.setDelFlag(CommonConstants.DEL_FLAG_NORMAL);
        return selectOne(new EntityWrapper<>(where));
    }
}
